<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>数组的新方法</title>
</head>
<body>
    

    <script>
    
        var ary = [10,11,12,13,14,15,16];

        console.log(ary.includes(10));

        var arr = ary.filter(item => item>12);

        console.log(arr);

        
        function fn () {
            console.log(this);
            
        };

        fn();
        
        (function () {

            var ary = [10,11,12,10,11,12];

            var s = new Set(ary);

            console.log(typeof s);

            for (const i of s) {
                console.log(i);
            }

        })();
    </script>
</body>
</html>